irrlib

irrlib Mercurial Source Tree


Root/Old Versions/1.2/Irr2D.h

/*
    Irrlicht Library Wrapper
    Created by Nathan Adams
    Copyright (C) 2007
 
    This software is licensed under the GNU/GPL.
    This software may not be used for commerical purposes.
*/
 
#ifndef IRR2D_H
#define IRR2D_H
/* We should include some basic functions */
#include <iostream>
/* include strings */
#include <strings.h>
 
/* We have to include Irrlichts libs */
#include <irrlicht.h>
 
#include "IrrLib.h"
#include "IrrSprite.h"
 
class Irr2D {
    private:
        irr::scene::ISceneManager* smgr;
        irr::video::IVideoDriver* driver;
        irr::video::ITexture* texturemap;
        int numTextures;
        irr::video::ITexture* textures[10];
    public:
        //Irr2D::Irr2D();
        IrrSprite Sprite;
        Irr2D::Irr2D();
        Irr2D::~Irr2D();
        void Irr2D::SetDriver(irr::video::IVideoDriver* driver);
        void Irr2D::SetSmgr(irr::scene::ISceneManager* smgr);
        void Irr2D::LoadTexturemap(std::string file);
        int Irr2D::LoadTexture(std::string file);
        void Irr2D::DrawImage(int texture, const irr::core::position2d<irr::s32> & destPos);
        void Irr2D::DrawImage(const irr::core::position2d<irr::s32> & destPos, const irr::core::rect<irr::s32> & sourceRect, const irr::core::rect<irr::s32> * clipRect, irr::video::SColor color, bool useAlphaChannelOfTexture);
        void Irr2D::DrawLine(const irr::core::position2d<irr::s32> & start, const irr::core::position2d<irr::s32> & end, irr::video::SColor color);
};
 
#endif
Source at commit tip created 11 years 4 months ago.
By Nathan Adams, Migrating from google code

Archive Download this file

Branches

Tags

Page rendered in 0.75145s using 11 queries.